package com.koron.order.linepatrol.satellite.bean.convertor;

import com.koron.order.linepatrol.satellite.bean.excel.LinePatrolMonitorChangeExcel;
import com.koron.order.linepatrol.satellite.bean.po.LinePatrolMonitorChange;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author jzp
 * @since 2023/2/9
 */
@Mapper(componentModel = "spring")
public interface LinePatrolMonitorChangeConvertor {

    @Mappings({
            @Mapping(source = "towerNumber", target = "towerName")
    })
    LinePatrolMonitorChange excelToEntity(LinePatrolMonitorChangeExcel excel);

}
